package com.gateway.jug.logic;

public class Configuration {

	private static String DEFAULT_UNITS = "MPH";
	private static double DEFAULT_THRESHOLD = 60;
	
	private static String units;
	private static Double threshold;
	
	public static String getUnits() {
		if (units == null) {
			return DEFAULT_UNITS;
		}
		return units;
	}
	
	public static double getThreshold() {
		if (threshold == null) {
			return DEFAULT_THRESHOLD;
		}
		return threshold;
	}
	
	public static void setUnits(String uom) {
		units = uom;
	}
	
	public static void setThreshold(Double thresh) {
		threshold = thresh;
	}
}
